<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery-3.4.1.min.js"></script>
	</head>
	<body>
		<ul>
			<li class="a1">111</li>
			<li class="a2">222</li>
			<li class="a3 bb">333</li>
			<li class="a4 bb">444</li>
			<li class="a5 bb">555</li>
			<li class="a6 cc">666</li>
			<li class="a7 cc">777</li>
		</ul>
		
		<script>
			$(".bb").each(function(index){
				alert("第"+index+"项内容："+$(this).text());
			})
		</script>
	</body>
</html>
